##导入tushare
import tushare as ts
##设置token
ts.set_token('531f7eda35d265a43c7091a5971802aab320a80c16afb6e7164c595a')
##初始化pro接口
pro = ts.pro_api()
##获取基金行情
df = pro.fund_daily(ts_code='150018.SZ', start_date='20180101', end_date='20210513')
print(df)